package com.example.rtsp2.service;

import java.util.function.Consumer;

/**
 * @Author: 杜科璇
 * @Description: FFmpeg服务接口
 * @Date: 2025/9/5 19:07
 * @Version: 1.0
 */

public interface FFmpegService {
    void setFrameConsumer(Consumer<byte[]> frameConsumer);
    void start();
    void stop();
    void pause();
    void resume();
    boolean isRunning();
    boolean isPaused();
    String getRtspUrl();
    void setStopCallback(Runnable stopCallback);
}